/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Fenetre.java
 *
 * Created on 30 juin 2011, 09:53:33
 */
package org.lestr.otaf.ihm;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

/**
 *
 * @author pibonnin
 */
public class Fenetre extends javax.swing.JFrame {


    /** Creates new form Fenetre */
    public Fenetre() {
        
        initComponents();
        
        addWindowListener(new WindowAdapter() {


            @Override
            public void windowClosing(WindowEvent e) {
                
                setVisible(false);
                dispose();
                
            }
            
            
        });
        
    }


    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        panneauMarge = new javax.swing.JPanel();
        panneau = new javax.swing.JPanel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        panneau.setLayout(new javax.swing.BoxLayout(panneau, javax.swing.BoxLayout.Y_AXIS));

        javax.swing.GroupLayout panneauMargeLayout = new javax.swing.GroupLayout(panneauMarge);
        panneauMarge.setLayout(panneauMargeLayout);
        panneauMargeLayout.setHorizontalGroup(
            panneauMargeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panneauMargeLayout.createSequentialGroup()
                .addComponent(panneau, javax.swing.GroupLayout.DEFAULT_SIZE, 36, Short.MAX_VALUE)
                .addContainerGap())
        );
        panneauMargeLayout.setVerticalGroup(
            panneauMargeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panneauMargeLayout.createSequentialGroup()
                .addComponent(panneau, javax.swing.GroupLayout.DEFAULT_SIZE, 25, Short.MAX_VALUE)
                .addContainerGap())
        );

        getContentPane().add(panneauMarge, java.awt.BorderLayout.CENTER);

        pack();
    }// </editor-fold>//GEN-END:initComponents


    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {


            public void run() {
                new Fenetre().setVisible(true);
            }


        });
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    public javax.swing.JPanel panneau;
    public javax.swing.JPanel panneauMarge;
    // End of variables declaration//GEN-END:variables

}

